<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>首页</title>
  <link rel="stylesheet"  href="/thinkphp1/Public/Css/admin.css"/>
</head>
<body>
      <div class="top">
          <div class="t_main w mt">
            <span><b>WE TEAM</b>商城后台管理系统</span>
            <div class="t_right fr">
              欢迎
              <?php echo $_SESSION['admin']['name']; ?>
              <a href="<?php echo U('Login/loginout');?>">❤退出❤</a>
            </div>
          </div>
      </div>
      <div class="main">
        <div class="main_left fl">
          <ul>
            <a href="<?php echo U('Goods/Index');?>">
              <li>
                <span class="lm_ico"></span>
                <b>商品管理</b>
                <span class="left_ico"></span>  
              </li>
              </a>
              <a href="<?php echo U('Category/Index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>分类管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('User/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>用户管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('Order/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>订单管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('Arguments/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>评论管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('Addver/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>广告管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
            </ul>
          </div>
          <div class="main_right fr">
        <div class="main_m">
            
<h1>用户管理</h1>
<table class="table" border="1" cellspacing="0" cellpadding="5" align="center">
			<tr>
				<th colspan="6">
				<form action="<?php echo U('index');?>" method="get">
				 	<input type="text" value="<?php echo ($like); ?>" name="like" /><button>搜索</button>
				</form>
				</th>
			</tr>

			<tr bgcolor="#ccc">
				<th>编号</th>
				<th>姓名</th>
				<th>性别</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			<?php if(is_array($list)): foreach($list as $key=>$val): ?><tr>
					<td><?php echo ($val['id']); ?></td>
					<td><?php echo ($val['name']); ?></td>
					<td><?php echo ($val['sex']); ?></td>
					<td>
						<?php if($val['status'] == 1): ?><a style="color:red" href="<?php echo U('User/Status',['id'=>$val['id'],'status'=>$val['status']]);?>">
							 禁用</a>
							<?php else: ?> 
							 <a style="color:blue" href="<?php echo U('User/Status',['id'=>$val['id'],'status'=>$val['status']]);?>">正常</a><?php endif; ?>
					</td>
					<td><a style="color:red" href="<?php echo U('del',['id'=>$val['id']]);?>">删除</a>|<a style="color:red" href="<?php echo U('reset',['id'=>$val['id']]);?>">重置密码</a></td>
				</tr><?php endforeach; endif; ?>
			<tr>
				<td colspan="5">
					<?php echo ($page); ?>
				</td>
			</tr>
</table>

        </div>  
      </div>
        </div>
        <div id="footer">
          
        </div>
        </body>
      </html>